#!/bin/sh
if [ -n "$HOME" ];then
    cp -n /etc/xdg/kglobalshortcutsrc $HOME/.config/kglobalshortcutsrc
fi

EXECUTE_PATH=$(cd `dirname $0`; pwd)

export "LD_PRELOAD=${PLUGIN_INSTALL_PATH}/libdde-kwin-xcb.so:$LD_PRELOAD"
export QT_SCALE_FACTOR=1
#":"后的"appFilePath=..."会传递给QPlatformIntegration::create调用
# appFilePath 的值会覆盖 QCoreApplication::applicationPath，以确保kwin崩溃自动重启时也是启动的kwin_no_scale脚本
kwin_x11 -platform dde-kwin-xcb:appFilePath=$EXECUTE_PATH/kwin_no_scale $@
